package com.dexgdx.game.manager;

import java.util.ArrayList;

import com.dexgdx.game.Game;
import com.dexgdx.game.factory.ActorFactory;
import com.dexgdx.game.json.JSONActor;
import com.dexgdx.game.structure.actor.AbstractActor;
import com.dexgdx.game.structure.actor.EnemyActor;

public class ActorManager {
//
//	
//	public static AbstractActor getActor(long actorIndex){
//		return (AbstractActor)Game.gameData.baseObjectMap.get(actorIndex);
//	}
//
//	public static void selectPlayer(long actorIndex, boolean multiple){
//		Long counter = Long.valueOf(actorIndex);
//		if(!multiple){
//			deSelectAllPlayers();
//		}
//		if(Game.gameData.playerList.contains(counter) && !Game.gameData.selectedPlayerList.contains(counter)){
//			((AbstractActor)Game.gameData.baseObjectMap.get(counter)).setSelected(true);
//			Game.gameData.selectedPlayerList.add(counter);
//		}
//	}
//	
//	public static void deSelectPlayer(long actorIndex){
//		Long counter = Long.valueOf(actorIndex);
//		Game.gameData.selectedPlayerList.remove(counter);
//		((AbstractActor)Game.gameData.baseObjectMap.get(counter)).setSelected(false);
//		
//	}
//
//	public static void selectSinglePlayer(long actorIndex){
//		selectPlayer(actorIndex, false);
//	}
//	
//	public static void selectAllPlayers(){
//		for (Long playerIndex : Game.gameData.playerList) {
//			selectPlayer(playerIndex, true);
//		}
//	}
//	
//	public static void deSelectAllPlayers(){
//		Object[] playerToDeselect = Game.gameData.selectedPlayerList.toArray();
//		for (Object playerIndex : playerToDeselect) {
//			deSelectPlayer((Long)playerIndex);
//		}
//	}
//	
//	public static boolean isActorSelected(AbstractActor actor){
//		return Game.gameData.selectedPlayerList.contains(actor.getObjectIndex());
//	}
//	
//	public static boolean isAnyPlayerSelected(){
//		return Game.gameData.selectedPlayerList.size() > 0;
//	}
}
